// Fill out your copyright notice in the Description page of Project Settings.

#include "WorldJunction.h"
#include "WorldEntityReferencing.h"

WORLD_ENTITY_META_DEFINE(FWorldJunction, FWorldConnectable);

FWorldJunction::FWorldJunction()
	: Super()
	, Connection(this)
	, Priority(this)
	, Controller(this)
{}

FWorldJunction::FWorldJunction(const json& j)
	: Super(j)
	, Connection(this, _xml, "connection")
	, Priority(this, _xml, "priority")
	, Controller(this, _xml, "controller")
{}

FWorldJunction::~FWorldJunction()
{}

void FWorldJunction::Resolve(FWorldEntityReferencing& referencing)
{
	Super::Resolve(referencing);
	referencing
		.Resolve(Connection)
		.Resolve(Priority)
		.Resolve(Controller);
}
